<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html>
<head>
<style type="text/css">
body{ margin:0 auto; text-align: center; }
/*table{ border-collapse:collapse; }*/
td{ border:1px solid; }
</style>
</head>
<body>

<?php
$h=8;
$w=8;
$map=array();

$yindex; $xindex;

for($yindex=0;$yindex<$w;++$yindex){
    for($xindex=0;$xindex<$h;++$xindex){
        //$map[$yindex]=array();
      $tile=new tile();
      $tile->x=$yindex;
      $tile->y=$xindex;
      $map[$xindex][$yindex]=$tile;
    }
}

?>
<?php
echo'<hr/>output<br/>';

echo'<table>';
for($yindex=0;$yindex<$w;++$yindex){
    echo'<tr>';
    for($xindex=0;$xindex<$h;++$xindex){
        echo'<td>';
        $mapdebug=array(
          "; x=".$map[$yindex][$xindex]->x,
          "; Y=".$map[$yindex][$xindex]->y
        );
        //echo $yindex,'*',$xindex,'=','';
        //echo $map[$yindex][$xindex]->x;
        echo implode($mapdebug),'<br/>';
        echo'</td>';

    }
    echo'</tr>';
}
echo'</table>';


class tile{
    public $x;
    public $y;
    //public
}
?>

<script type="text/javascript">
</script>
</body>
</html>
<?php
/*
   my favorite heavy song is <>Liefe by Waving Corn</>
 *
 * java
 * c
 * ecmascript
 * vb.net
 * php
 * python


 * cv
 * fruit
 * music
 * root
 * Renata
 * gearbox
 *
 */
//nsis install script generator for windows registry  support with small scripting language and template builder
// %windir%\System32\regedt32.exe
//registry editor that blends the exact structure tree view with highlighting significant and obsolete nodes
?>
